package com.xbongbong.paas.pojo.dto;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;
import java.util.Collections;
import java.util.List;

/**
 * 表单富文本删除DTO
 *
 * @author LiZhikang
 * @date 2022/9/5 14:03
 */
@Getter
@Setter
@NoArgsConstructor
public class FormRichTextBatchDTO implements Serializable {
    private static final long serialVersionUID = 3581750849124518464L;
    /**
     * 公司Id
     */
    private String corpid;
    /**
     * 表单Id
     */
    private Long formId;
    /**
     * 业务类型
     */
    private Integer businessType;
    /**
     * Saas标记
     */
    private Integer saasMark;
    /**
     * 删除数据Id
     */
    private List<Long> deleteIds;
    /**
     * 删除前类型
     */
    private List<Integer> delList;
    /**
     * 删除后类型
     */
    private Integer afterDel;
    /**
     * 更新时间
     */
    private Long updateTime;


    public FormRichTextBatchDTO(String corpid, Long formId, Integer businessType, Integer saasMark, List<Long> deleteIds, Integer beforeDel, Integer afterDel) {
        this.corpid = corpid;
        this.formId = formId;
        this.businessType = businessType;
        this.saasMark = saasMark;
        this.deleteIds = deleteIds;
        this.delList = Collections.singletonList(beforeDel);
        this.afterDel = afterDel;
    }

    public FormRichTextBatchDTO(String corpid, Long formId, List<Integer> delList, Integer afterDel) {
        this.corpid = corpid;
        this.formId = formId;
        this.delList = delList;
        this.afterDel = afterDel;
    }
}
